//
//  LoadMoreView.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/1/18.
//

import SwiftUI

struct LoadMoreView: View {
    var noMore: Bool = false
    var footerRefreshing : Bool = false
    var hideNoMore = false //隐藏【没有更多数据了】
    var body: some View {
        if noMore {
            if hideNoMore == false {
                Text("没有更多数据了")
                    .font(.system(size: 16))
                    .foregroundStyle(.bgNormalText3)
                    .padding()
            }
        } else if footerRefreshing {
            HStack{
                ProgressView()
                Text("加载中")
                    .font(.system(size: 16))
                    .foregroundStyle(.bgNormalText3)
                    .padding()
            }
            
        }
    }
}

#Preview {
    LoadMoreView()
}
